/**
 * 商户表 api 封装
 *
 * @Author:    zhoujk
 * @Date:      2025-01-26 06:40:44
 */
import { postRequest, getRequest } from '/@/lib/axios'

export const merchantApi = {
  /**
   * 分页查询商户
   */
  page: (param) => {
    return postRequest('/b-merchant/merchant/page', param)
  },

  /**
   * 增加商户
   */
  insert: (param) => {
    return postRequest('/b-merchant/merchant/insert', param)
  },

  /**
   * 修改商户
   */
  update: (param) => {
    return postRequest('/b-merchant/merchant/update', param)
  },

  /**
   * 根据id查询商户
   */
  findOne: (param) => {
    return postRequest('/b-merchant/merchant/find_id', param)
  },

  /**
   * 重置密码
   */
  resetPwd: (param) => {
    return postRequest('/b-merchant/merchant/reset_pwd', param)
  },
}
